package com.hx.yupao.mapper;

import com.hx.yupao.model.domain.Team;
import com.hx.yupao.model.domain.User;
import com.hx.yupao.model.domain.UserTeam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hx.yupao.model.vo.UserVO;

import java.util.List;

/**
 * @author Lenovo
 * @description 针对表【user_team(用户队伍关系)】的数据库操作Mapper
 * @createDate 2025-10-02 16:00:08
 * @Entity com.hx.yupao.model.domain.UserTeam
 */
public interface UserTeamMapper extends BaseMapper<UserTeam> {

    /**
     * 查询特定队伍用户信息
     */
    List<UserVO> getUsersByTeamId(Long id);

    /**
     * 查询用户参加队伍
     * @param id
     * @return
     */
    List<Team> getTeamsByUserId(Long id);
}




